

all: go rs kt cj

go: boc-go/main.go
	cd boc-go && go build -o target/boc-go

rs: boc-rs/src/main.rs
	cd boc-rs && cargo build --release

kt: boc-kt/pom.xml boc-kt/src/main/kotlin/com/mstai/boc/main.kt
	cd boc-kt && mvn package

cj: boc-cj/main.cj
	cd boc-cj && mkdir -p target && cjc -O2 -o target/boc-cj main.cj

run: go rs kt cj
	boc-go/target/boc-go -c -w 5000 -e 10000 -q 256 -t 3
	boc-rs/target/release/boc-rs -c -w 5000 -e 10000  -q 256 -t 3
	boc-kt/boc-kt -w 5000 -e 10000  -q 256 -t 3
	boc-cj/target/boc-cj -w 5000 -e 10000  -q 256 -t 3